package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TurnOverLogMapper;
import com.ruoyi.system.domain.TurnOverLog;
import com.ruoyi.system.service.ITurnOverLogService;

/**
 * 客户移交记录Service业务层处理
 * 
 * @author tong
 * @date 2024-01-22
 */
@Service
public class TurnOverLogServiceImpl implements ITurnOverLogService 
{
    @Autowired
    private TurnOverLogMapper turnOverLogMapper;

    /**
     * 查询客户移交记录
     * 
     * @param id 客户移交记录主键
     * @return 客户移交记录
     */
    @Override
    public TurnOverLog selectTurnOverLogById(Long id)
    {
        return turnOverLogMapper.selectTurnOverLogById(id);
    }

    /**
     * 查询客户移交记录列表
     * 
     * @param turnOverLog 客户移交记录
     * @return 客户移交记录
     */
    @Override
    public List<TurnOverLog> selectTurnOverLogList(TurnOverLog turnOverLog)
    {
        return turnOverLogMapper.selectTurnOverLogList(turnOverLog);
    }

    /**
     * 新增客户移交记录
     * 
     * @param turnOverLog 客户移交记录
     * @return 结果
     */
    @Override
    public int insertTurnOverLog(TurnOverLog turnOverLog)
    {
        return turnOverLogMapper.insertTurnOverLog(turnOverLog);
    }

    /**
     * 修改客户移交记录
     * 
     * @param turnOverLog 客户移交记录
     * @return 结果
     */
    @Override
    public int updateTurnOverLog(TurnOverLog turnOverLog)
    {
        return turnOverLogMapper.updateTurnOverLog(turnOverLog);
    }

    /**
     * 批量删除客户移交记录
     * 
     * @param ids 需要删除的客户移交记录主键
     * @return 结果
     */
    @Override
    public int deleteTurnOverLogByIds(Long[] ids)
    {
        return turnOverLogMapper.deleteTurnOverLogByIds(ids);
    }

    /**
     * 删除客户移交记录信息
     * 
     * @param id 客户移交记录主键
     * @return 结果
     */
    @Override
    public int deleteTurnOverLogById(Long id)
    {
        return turnOverLogMapper.deleteTurnOverLogById(id);
    }
}
